export default [
  {
    path: '/',
    name: 'index',
    meta: {
      title: '首页',
      keepAlive: false //需要缓存
    },
    component: resolve => {
      require(['@/views/index.vue'], resolve)
    },
    // redirect: to => {
    //   return '/index'
    // }
    // redirect: '/subject/course',

    // children: [
    //   {
    //     path: 'course',
    //     name: 'Course',
    //     component: resolve => {
    //       require(['../views/index.vue'], resolve)
    //     },
    //     meta: {
    //       title: '课程管理',
    //       keepAlive: false
    //     }
    //   },
    // ]
  },
  {
    path: '/goodsInfo',
    name: 'goodsInfo',
    meta: {
      title: '商品详情',
      keepAlive: false
    },
    component: resolve => {
      require(['@/views/goodsInfo.vue'], resolve)
    },
  },
]
